package com.pxst.agent.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pxst.agent.entity.SysAgents;
import com.pxst.agent.req.AgentCommissionReq;
import com.pxst.agent.req.AgentReq;
import com.pxst.agent.req.AgentCreatReq;
import com.pxst.agent.req.AgentUpdateReq;
import com.pxst.agent.resp.AgentCommissionResp;
import com.pxst.agent.resp.AgentResp;
import com.pxst.agent.resp.AgentSearchResp;
import com.pxst.resp.ApiResp;
import icu.mhb.mybatisplus.plugln.base.service.JoinIService;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
* <p>
* sys_agents Service 接口
* </p>
*
* @author zarke
* @since 2023-09-08 11:12:20
*/
@Service
public interface SysAgentsService extends JoinIService<SysAgents> {

    //代理下拉框信息
    ApiResp<AgentResp> getAgentList(Integer status);

    //搜索
    ApiResp<AgentSearchResp> getAgents(AgentReq agentReq);

    //新增
    ApiResp<SysAgents> create(AgentCreatReq agentReq1);

    //重置密码
    ApiResp<Map<String,String>> updatePassword(Long id);

    //编辑详情
    ApiResp<AgentUpdateReq> updateDetails(AgentUpdateReq updateReq);

    //搜索代理抽成
    ApiResp<AgentCommissionResp> getAgentCommission(Long id , AgentCommissionReq agentReq);
}